package br.com.aquinoevasconcelos.modelos;

import java.util.Collection;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;

import br.com.aquinoevasconcelos.user.UsuarioAdm;

/**
 * @author Paulo Roberto
 * @email paulolima2008@hotmail.com
 * @version 1.0 @ Propriedade da Techcode
 */

@Entity(name="contato")
public class Contato {

	@Id
	@GeneratedValue
	private long id;
	
	@Column(length=100)
	private String nome;
	
	@Column(length=100)
	private String assunto;
	
	@Column(length=10000)
	private String descricao;
	
	@Column(length=100)
	private String email;
	
	@Column(name="data_hora",length=20)
	private String datahora;
	
	@OneToMany
	private Collection<UsuarioAdm> usuarioAdm;
	
	// GETs e SETs
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String getAssunto() {
		return assunto;
	}
	public void setAssunto(String assunto) {
		this.assunto = assunto;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getDatahora() {
		return datahora;
	}
	public void setDatahora(String datahora) {
		this.datahora = datahora;
	}
	public Collection<UsuarioAdm> getUsuarioAdm() {
		return usuarioAdm;
	}
	public void setUsuarioAdm(Collection<UsuarioAdm> usuarioAdm) {
		this.usuarioAdm = usuarioAdm;
	}
	
}
